package net.java.amateras.uml.classdiagram.model;

import java.io.Serializable;

public abstract class Search implements Serializable {
	
	/**
	 * Don't create an instanse.
	 */
	private Search(){
	}
	
	public static final Search SINGLE = new Search(){
		public String toString(){
			return "single";
		}
	};
	
	public static final Search MULTIPLE = new Search(){
		public String toString(){
			return "multiple";
		}
	};
	
	public static final Search NONE = new Search(){
		public String toString(){
			return "none";
		}
	};
	
	public boolean equals(Object obj){
		if(obj instanceof Search && obj.toString().equals(toString())){
			return true;
		}
		return false;
	}
	
	public static Search[] getSearch(){
		return new Search[]{
				NONE, SINGLE, MULTIPLE
		};
	}
}
